<?php

$sessionManager = SessionManager::getInstance();
$errors = $sessionManager->getFromSession("restricted_errors");

if ( $errors instanceof Errors ) {
	$iterator = $errors->getIterator();
	while($iterator->valid()) {
	    $error = $iterator->current();
		echo $error->getMessage()."</br>";
	    $iterator->next();
	}
}
?>